﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Cormant.Mvc.Web
{
    [HtmlTag("input")]
    public class MvcTextBox : MvcInput
    {
        #region TextBox : Constructors.
        public MvcTextBox(HtmlHelper html, string id)
            : base(html, id)
        { }
        #endregion

        #region TextBox : Properties.
        [HtmlAttribute("maxLength")]
        public int MaxLength { get; set; }

        [HtmlAttribute("readOnly")]
        public bool ReadOnly { get; set; }

        [HtmlAttribute("type")]
        protected override string Type
        {
            get { return "text"; }
        }
        #endregion
    }
}
